<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/11
  Time: 15:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ include file="../common/web_top.jsp" %>
<!--滚动div -->
<div class="bgSortScroll">
    <!-- ngIf: HbHr.hr54 -->
    <div class="public-bgContent">
        <!--表单搜索-->
        <div class="public-bgDate">
            <span><input type="text" autocomplete="off" class="datepicker"
                         placeholder="开始时间" ng-model="param.beginTime"
                         id="beginTime"><i class="iconfont icon-riqi"></i></span>
            <em>&nbsp;&nbsp;~&nbsp;&nbsp;</em>
            <span><input type="text" autocomplete="off" class="datepicker"
                         placeholder="结束时间" id="endTime"><i class="iconfont icon-riqi"></i></span>
            <div class="se-re">
                <select id="seleNames" class="ng-pristine ng-untouched ng-valid ng-empty">
                    <option value="" selected="selected">选择字段</option>
                    <option value="1">借款编号</option>
                    <option value="2">客户姓名</option>
                    <option value="3">手机号码</option>
                    <option value="4">身份证号码</option>
                    <option value="5">业务员姓名</option>
                </select>
                <span class="se-po"></span>
            </div>
            <span>
			<input type="text" autocomplete="off" id="inputNames" placeholder="请输入关键字" ng-focus="remHight()"
                   ng-model="param.keyword"
                   class="ng-pristine ng-untouched ng-valid ng-empty">
		</span>
            <div class="se-re">
                <select id="at_id" ng-options="a.id as a.atName for a in fenQi.content" ng-model="param.atId"
                        class="ng-pristine ng-untouched ng-valid ng-empty">
                </select>
                <span class="se-po"></span>
            </div>
            <div class="se-re">
                <select id="loan_way" class="ng-pristine ng-untouched ng-valid ng-empty">
                    <option value="">贷款方式</option>
                </select>
                <script type="text/x-handlebars-template" id="loanMethod_list_tpl">
                    {{#each content}}
                    <option value="{{id}}">{{name}}</option>
                    {{/each}}
                </script>
                <span class="se-po"></span>
            </div>
            <div class="se-re">
                <select id="product_choose_list" class="ng-pristine ng-untouched ng-valid ng-empty">
                    <option value="">选择产品</option>
                    <%--<option value="1">按揭短拆</option>
                    <option value="2">红本抵押</option>
                    <option value="3">红本质押</option>--%>
                </select>
                <span class="se-po"></span>
            </div>
            <button class="sousuo" ng-click="search('search',1,-1)">
                <i class="iconfont icon-sousuo"></i>
            </button>
        </div>
        <!--提示操作-->
        <div class="public-bghint">
            <span ng-click="showMenu()" style="cursor: pointer;">提示操作&nbsp;&nbsp;<i
                    class="iconfont icon-icon-copy-copy"></i></span>
            <span class="calNum">筛选<span class=" result">0</span>条结果</span>
        </div>
        <ul class="public-ulList" ng-show="isMenu" ng-transclude="content">
            <menu-content class="">
                <li>显示拥有该栏目管理权限的数据；</li>
                <li>拥有权限的管理员会显示对应的操作按钮；</li>
            </menu-content>
        </ul>
        <div style="height: 20px;"></div>
        <!--tabel 列表-->
        <div class="table-scroll">
            <table class="table public-table PoInput">
                <thead>
                <tr>
                    <td class="">选择</td>
                    <td>创单时间</td>
                    <td>借款编号</td>
                    <td>产品</td>
                    <td>客户姓名</td>
                    <td>期限</td>
                    <td>借款金额</td>
                    <td>业务员</td>
                    <td>部门</td>
                    <td>状态</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody id="order_list">

                </tbody>
            </table>
        </div>
        <div class="public-botPage">
            <!-- ngIf: operation.batch -->
            <div class="public-botPage-left " ng-if="operation.batch">
                <label id="ch_id_all">
                    &nbsp;&nbsp;&nbsp;<input type="checkbox" name="ch_id_all">
                    &nbsp;全选
                </label>
                <div class="se-re">
                    <select id='bulk_operation' autocomplete="off"
                            class="tabHint PoListSele ng-pristine ng-untouched ng-valid ng-not-empty"
                            ng-model="selectType.default" ng-change="F.selectQuery('PoListSele','ch_id')">
                        <option value="" selected="selected">批量操作</option>
                        <option value="批量退回" path="loanBefore" params="delePo" param="type:2"
                                ng-if="HbHr.hr57 &amp;&amp; operation._type =='orderList'" class="">
                            批量退回
                        </option><!-- end ngIf: HbHr.hr57 && operation._type =='orderList' -->
                        <!-- ngIf: operation._type !=='orderList' -->
                    </select>
                    <span class="se-po"></span>
                </div>
            </div><!-- end ngIf: operation.batch -->
            <div class="order-page-container page-container" style="float: right; padding: 15px 0;"></div>
        </div>
    </div>

</div>

<!-- Modal -->
<%@ include file="common/process_form.jsp" %>

<%--删除确认弹框--%>
<div class="winBox delete_winBox" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明： 选择已有客户 -->
        <div class="winBox3 ">
            <div class="deleteBox">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">删除申请</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 中间列表 -->
                    <div class="deleteTit">
			<span class="first">
				<i class="iconfont icon-tips2"></i>
			</span>
                        <span>您确定要删除？一旦删除信息无法恢复！</span>
                    </div>
                    <div class="beizhu"><span>*</span>备注</div>
                    <textarea class=""></textarea>
                    <!-- 底部 -->
                    <div class="deleFooter">
                        <div class="deleBtn">
                            <button class="sureDel">确定删除</button>
                            <button class="canDel">取消删除</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%--资料补全弹框--%>
<div class="winBox addMaterial_winBox">
    <div class="winBox1">
        <div class="winBox3">
            <div class="dealrecord">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">资料补全</span>
                    <i class="iconfont icon-wrong headerIcon" id="show"></i>
                </div>


                <div class="resultBox">
                    <div class="centerBox" style="max-height: 512px;">
                        <div id="material_list"
                             style="width: 600px; padding:0px 20px; overflow-y: auto; max-height: 500px;">

                        </div>
                    </div>
                </div>

                <!-- 内容角色下拉框 -->
                <div class="contentBox" style="margin-top: 20px">
                    <div class="assBox">
                        <div class="assBox2"></div>
                        <div class="deleFooter" style="padding-bottom: 0;">
                            <div class="deleBtn">
                                <button id="sureAddMaterial">
                                    确认提交
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/x-handlebars-template" id="material_list_tpl">
    {{#if attTypeInfos.[0]}}
    <table class="resultTab attachment" style="margin-top: 20px">
        <tbody>
        {{#each attTypeInfos}}
        <tr class="">
            <td class="">{{type_name}}：</td>
            <td class="unload" style="height: auto">
                <em id="imgTerm_0" class="viewPic" data-id="{{attchment_type_id}}"
                    data-attachname="{{type_name}}">上传文件</em>
                <div class="imgArr minImg" style="margin-bottom: 0px; height: auto">
                    <%--左箭头--%>
                    <span style="display: none;" class="_pre " ng-if="item.isImg" ng-click="_pre(key)"></span>
                    <div class="cover" style="overflow: hidden; margin: 0 24px;{{#if attach_img.[0]}}{{else}}display: none;{{/if}}">
                        <div id="gallery{{attchment_type_id}}" attachId="{{attchment_type_id}}"
                             attachname="{{type_name}}"
                             style="position: relative; left: 0;">
                            {{#each attach_img}}
                            <li href="{{this}}"><img class="img_00" url="{{this}}" src="{{this}}/tupian_compress">
                                <i class="delSingleAttach iconfont icon-minus">
                                </i>
                            </li>
                            {{/each}}
                            <%--右箭头--%>
                        </div>
                    </div>
                    <span style="display: none;" class="_next " ng-if="item.isImg" ng-click="_next(key)"></span>
                    <span style="display: none" class="file_pre" ng-if="item.isImg" ng-click="_pre(key)"></span>
                    <div class="fileCover" style="overflow: hidden; margin: 0 24px; margin-top: 5px; display: none;">
                        <div id="fileGallery{{attchment_type_id}}" fileAttachId="{{attchment_type_id}}"
                             attachname="{{type_name}}"
                             style="position: relative; left: 0;">
                            {{#each attach_img}}
                            <li href="{{this}}"><img class="img_00" url="{{this}}" src="{{this}}/tupian_compress">
                                <i class="delSingleFileAttach iconfont icon-minus">
                                </i>
                            </li>
                            {{/each}}
                            <%--右箭头--%>
                        </div>
                    </div>
                    <span style="display: none" class="file_next " ng-if="item.isImg" ng-click="_next(key)"></span>
                </div>
            </td>
        </tr><!-- end ngRepeat: (key,item) in AttaSele track by $index -->
        {{/each}}
        </tbody>
    </table>
    {{/if}}
</script>


<script type="text/x-handlebars-template" id="order_list_tpl">
    {{#if content.list.[0]}}
    {{#each content.list}}
    <tr class="table-tr-hover ">
        <td ng-if="!operation.examine" class="">
            <input type="checkbox" name="ch_id" value="{{id}}" data-taskid="{{task_id}}" data-nodeid="{{node_id}}" />
        </td>
        <td>{{found_time}}</td>
        <td>{{#IF_GT before_s_id node_id}}<span style="background: #e55a5b; padding: 3px 15px; color: #fff;">{{loan_number}}</span>{{else}}{{loan_number}}{{/IF_GT}}
        </td>
        <td>{{product_name}}</td>
        <td class="">{{personal_name}}</td>
        <td class="">{{#IF_EQ repayment_way '4'}}{{#if at_id}}{{at_id}}天{{/if}}{{else}}{{term_name}}{{/IF_EQ}}</td>
        <td>{{#thounsandBit apply_money}}{{/thounsandBit}}</td>
        <td class="">{{user_name}}</td>
        <td class="">
            {{#if d_name}}
            {{#if d_name3}}{{d_name3}}&gt;&nbsp;{{/if}}{{#if d_name2}}{{d_name2}}&gt;&nbsp;{{/if}}{{#if
            d_name}}{{d_name}}{{/if}}
            {{/if}}
        </td>
        <td>{{s_name}}</td>
        <td>
            <div class="se-re sel-blue">
                <select class="tabHint selectDelePo596 ng-not-empty operations"
                        product_id="{{product_id}}" order_id="{{id}}" task_id="{{task_id}}" at_id="{{at_id}}"
                        node_type="{{node_type}}" node_id="{{node_id}}" s_id="{{s_id}}" repayment_way="{{repayment_way}}"
                        approvalType="{{approvalType}}">
                    <option value="-1" selected="selected">选择操作</option>
                    {{#each ../fourthMenus}}
                    <option value="{{key}}" {{#IF_EQ key 'rejectOrder'}}style="display:none"{{/IF_EQ}}>{{name}}</option>
                    {{/each}}
                </select>
                <span class="se-po-blue"></span>
            </div>
            <button class="operations_record tabHint btnQuery596" path="loanBefore" params="record" id="{{id}}">
                操作记录
            </button>
        </td>
    </tr>
    {{/each}}
    {{else}}
    <tr class="">
        <td colspan="16">暂时找不到数据</td>
    </tr>
    {{/if}}
</script>

<script type="text/x-handlebars-template" id="at_id_tpl">
    <option value="">分期</option>
    {{#each .}}
    <option value="{{id}}" data-num="{{num}}">{{atName}}</option>
    {{/each}}
</script>

<link href="static/css/viewer.css" rel="stylesheet"/>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.config.js?_v=190102162154"></script>
<script type="text/javascript" src="static/plugins/ueditor/ueditor.all.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/jquery-plugin/viewer-fake.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/page/loanBefore/order.js?_v=190102162150"></script>

<%@ include file="../common/web_bottom.jsp" %>
